'use strict';

const conn = require('../../../libs/Conn');

module.exports = async function (params) {
    let obj;
    if(params.enable === '1'){
        obj = {
            enable:2
        };
    }else{
        obj = {
            enable:1
        };
    }
    let updateSql = `UPDATE user_file SET ? WHERE　user_id IN (?)`;
    await conn(updateSql,[obj,params.user_id]);
   return {success: true};

};